package com.ruoyi.wechat.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.wechat.pay.java.service.cashcoupons.model.Coupon;
import lombok.Data;

/**
 * 用户优惠券对象 app_user_coupon
 *
 * @author YInHeng
 * @date 2024-05-07
 */
@Data
public class AppUserCoupon extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long id;

    /**
     * 用户ID
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long userId;
    /**
     * 用户昵称
     */
    private String userNick;

    /**
     * 优惠券ID
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long couponId;
    /**
     * 消费券
     */
    @TableField(exist = false)
    private AppCoupon appCoupon;

    /**
     * 数量
     */
    private Integer num;

}
